import http from "../http";



function add( params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/add',
        method: 'post',
        data: params,
    })
}
function update( params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/update',
        method: 'post',
        data: params,
    })
}
function removeById( params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/removeById',
        method: 'post',
        data: params,
        header:{
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}
function queryList( params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/queryList',
        method: 'post',
        data: params,

    })
}
function getMonthExpiryDateList( params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/getMonthExpiryDateList',
        method: 'post',
        data: params,
        header:{
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}
function handleExpiryProduct( params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/handleExpiryProduct',
        method: 'post',
        data: params,
        header:{
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}
function preAdd(params: any = {}) {
    return http.myRequest({
        url: '/expiryManagement/preAdd',
        method: 'post',
        data: params,
        header: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}


export default {
    add,
    update,
    removeById,
    queryList,
    getMonthExpiryDateList,
    handleExpiryProduct,
    preAdd

}

